package homework;
/*
有100份礼品,两人同时发送，当剩下的礼品小于10份的时候则不再送出，利用多线程模拟该过程并将线程的名称打印出来.
 */
public class Test2 {
    public static void main(String[] args) {
        Gift g = new Gift();
        Thread t1 = new Thread(g,"a");
        Thread t2 = new Thread(g,"b");
        t1.start();
        t2.start();
    }
}
